﻿using BCEntity.Common.News.NewsContent;
using BCEntity.MakeStaticPagingComponent.PageTemplate;
using BCService.MakeStaticPagingComponent.PageTemplateSerialize;
using System;
using System.Collections.Generic;
using System.Text;

namespace PageTemplateSerializeConsole.Test.FackData
{
    public class FackData
    {
        public FackData()
        {
            Dictionary<string, object> data = new Dictionary<string, object>();
            data.Add("$$name", "blackcoffee");
            data.Add("&&pageTemplate", new PageTemplateEntity() { PageCode = "abc" });
            data.Add("&&news", new List<NewsContentEntity>() { new NewsContentEntity { Title = "news1" }, new NewsContentEntity() { Title = "news2" } });
            data.Add("##count", 2);
            data.Add("$$current_reference_data", new List<NewsContentEntity>() { new NewsContentEntity { Title = "news1" }, new NewsContentEntity() { Title = "news2" } });
            data.Add("$$current_reference_tagname","&&news");
            data.Add("$$current_active_data", new NewsContentEntity { Title = "news1" });
            Dictionary<string,object> dic = new Dictionary<string, object>();
            dic.Add("**i", 0);
            data.Add("$$current_active_children", dic);
            PageData.Data = data;
        }
    }
}
